package com.blb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.entity.CargoSpace;
import com.blb.mapper.CargoSpaceMapper;
import com.blb.service.ICargoSpaceService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wss
 * @since 2020-05-27
 */
@Transactional
@Service
public class CargoSpaceServiceImpl extends ServiceImpl<CargoSpaceMapper, CargoSpace> implements ICargoSpaceService {

    @Resource
    private  CargoSpaceMapper cargoSpaceMapper;

    @Override
    public List<CargoSpace> getCargoSpaceByShelf(Map<String, Object> map) {
        return cargoSpaceMapper.getCargoSpaceByShelf(map);
    }

    @Override
    public int getPageCount(Map<String, Object> map) {
        return cargoSpaceMapper.getPageCount(map);
    }
}
